home *** CD-ROM | disk | FTP | other *** search
- // LF2 Engine
- // (C) 2002-3 7FX
- //---------------------------------------------------------------------------
- // Header file with common defs
- //---------------------------------------------------------------------------
- // Declares variables for texture sampler filters
- #define DECLARE_TEX_SAMPLER_VALUES const int cMipFlt : TextureMipFilter = 1; const int cMagFlt : TextureMagFilter = 2; const int cMinFlt : TextureMinFilter = 2; /*POINT, LINEAR, LINEAR*/ const int cAniso : TextureAnisotropy = 1; const int cAddr : TextureAddress = 1 /*D3DTADDRESS_WRAP*/
- // Sets texture sampler filters
- #define SET_TEX_SAMPLER_FILTERS MipFilter = <cMipFlt>; MinFilter = <cMinFlt>; MagFilter = <cMagFlt>; MaxAnisotropy = <cAniso>
- // Sets texture sampler address modes
- #define SET_TEX_SAMPLER_ADDRESS AddressU = <cAddr>; AddressV = <cAddr>
-
- // Sets all tex sampler values
- #define SET_TEX_SAMPLER_VALUES SET_TEX_SAMPLER_FILTERS; SET_TEX_SAMPLER_ADDRESS
- //---------------------------------------------------------------------------
-